package com.fingerth.myjsondemo;

import com.fingerth.myjsondemo.tab.PhotoGallery;
import com.fingerth.myjsondemo.tab.Picture;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Collection;
import java.util.List;

public interface PhotoGalleryRepository extends JpaRepository<PhotoGallery, Long> {

    //List<PhotoGallery> findByPriceBetweenOrderByPriceAsc(Double startPrice, Double endPrice);

    //@Query(value = "from User where userId = ?2 and userName = ?1")
    //List<PhotoGallery> findByIdIn(Collection<Integer> c);

    Page<PhotoGallery> findPhotoGalleriesByGalleryType(int type,Pageable pageable);


}

